<div id="main-alt">

<ul class="tab_nav" id="tab_nav">
  <li><a href="#image_page" class="active">Image</a></li>
</ul>
<div id="wikiContent">
<div id="image_page">
<h2><%=title "Image: #{h(@<%= file_name %>_asset.file.filename)}" %></h2>
<h3>Uploaded by: <%= link_to(@<%= file_name %>_asset.user.name, user_path(@<%= file_name %>_asset.user.id)) %></h3>

<span class="image">
  <%= link_to(image_tag(@<%= file_name %>_asset.file.small), @<%= file_name %>_asset.file.url) %>
  <% if  @<%= file_name %>_asset.caption and @<%= file_name %>_asset.caption.size > 0 %>
  <br/><%=h @<%= file_name %>_asset.caption %><br/>
  <% end %>
  
  <!-- file stats -->
  <small>
  Full Resolution: <%= @<%= file_name %>_asset.file_width %>x<%= @<%= file_name %>_asset.file_height %><br/>
  
  <% size = @<%= file_name %>_asset.file.size.to_f/100.0 %>
  Filesize: <%= size > 1000 ? "#{number_with_precision(size/1000.0,2)} MB" : "#{number_with_precision(size, 2)} KB"  %><br/>
   
  </small>
</span>
</div><!-- end image_page -->

</div><!-- end wikiContent -->
</div><!-- end main -->


<div id="secondary-alt">
  <%= render :partial => '<%= file_name %>_pages/<%= file_name %>_navigation' %>
</div>